<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="/css/global.css" media="all">
    <link rel="stylesheet" href="/plugins/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/plugins/font-awesome/css/font-awesome.min.css">
    <script type="text/javascript" src="/plugins/layui/layui.js"></script>
    <title>Title</title>
</head>
<body>
<div style="margin: 15px;">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>添加通知(<label class="layui-required-tip">标红的为必填项</label>)</legend>
    </fieldset>

    <form id="layui-form" class="layui-form" action="/manage/msg/crenotice" method="post">

        <div class="layui-form-item">
            <label class="layui-form-label layui-required-tip">通知标题：</label>
            <div class="layui-input-block">
                <input type="text" name="title" lay-verify="required" maxlength="50" placeholder="请填写通知标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label layui-required-tip">通知内容</label>
            <div class="layui-input-block">
                <textarea id="content" lay-verify="required" name="content" placeholder="请输入通知内容" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态：</label>
            <div class="layui-input-block">
                <input type="radio" name="enableFlag" value="1" title="启用" checked/>
                <input type="radio" name="enableFlag" value="0" title="停用" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否置顶：</label>
            <div class="layui-input-block">
                <input type="radio" name="type" value="1001" title="置顶"/>
                <input type="radio" name="type" value="1002" title="不置顶" checked/>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="demo1">添加</button>
                <button type="reset" class="layui-btn layui-btn-primary" onclick="formReset()">重置</button>
                <a href="/manage/msg/noticepage" class="layui-btn">返回</a>
            </div>
        </div>
    </form>
</div>
<script>
    layui.use(['form','jquery'],function () {
        var form = layui.form,$ = layui.jquery;
        from.render();
    })
</script>
</body>
</html>